import gtk

class  Test():

  def __init__(self):

    b= gtk.Builder()
    b.add_from_file("test.glade" )
    self.ventanaprincipal = b.get_object("window1" )

    b.connect_signals(self)
    self.ventanaprincipal.show()



  def on_button1_clicked(self,widget, data=None):
     print "BOTON OK!!"

  def on_window1_destroy(self, widget, data=None):
      gtk.main_quit()

if __name__ == "__main__":

    t= Test()
    gtk.main()
